<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>案例浮动练习</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        .box li {
            width: 296px;
            height: 285px;
            background-color: antiquewhite;
            float: left;
            margin-right: 14px;
        }
        
        li {
            list-style: none;
        }
        
        ul .li4 {
            margin: 0;
        }
        
        .box {
            background-color: aqua;
            width: 1226px;
            height: 285px;
            margin: 100px auto;
        }
    </style>
</head>

<body>
    <div class="box">
        <ul>
            <li>1</li>
            <li>2</li>
            <li>3</li>
            <li class="li4">4</li>
        </ul>


    </div>


</body>

</html>